def anagram(str1,str2): # DO NOT modify this line 
    c1 = [0] * 26 
    c2 = [0] * 26 

    for i in range(len(str1)): 
        pos = ord(str1[i]) - ord('a') 
        c1[pos] = c1[pos] + 1 

    for i in range(len(str2)): 
        pos = ord(str2[i]) - ord('a') 
        c2[pos] = c2[pos] + 1 

    diff = ['<']
    for i in range(26):
        if c1[i]!=c2[i]:
            diff.append(chr(ord('a')+i))
    diff.append('>')
    return "".join(diff) 

# === DO NOT modify the code below ===
def main():
    a = input()
    b = input()
    print(anagram(a,b))
    
if __name__ == '__main__':
    main()
# === DO NOT modify the code above ===
